// IconImage.h: interface for the IconImage class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ICONIMAGE_H__E73F9CFD_A616_11D2_A454_006097A44215__INCLUDED_)
#define AFX_ICONIMAGE_H__E73F9CFD_A616_11D2_A454_006097A44215__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "Image.h"

class CLASS_DECL_D IconImage : public Image  
{
DECLARE_DYNAMIC(IconImage)
public:
	IconImage(HINSTANCE hinst, LPTSTR name);
	IconImage(HINSTANCE hinst, int id);
	virtual ~IconImage();

	virtual void paint(CDC* pDC, AWTCanvas* canvas);
	virtual CSize getSize();
	virtual BOOL loadImage();
	virtual BOOL isValid()
		{return (m_hicon != NULL);}

private:
	HINSTANCE m_hinst;
	LPTSTR m_name;
	HICON m_hicon;
	BOOL m_bName;
};

#endif // !defined(AFX_ICONIMAGE_H__E73F9CFD_A616_11D2_A454_006097A44215__INCLUDED_)
